package com.plugin.nurse;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableScheduling
@MapperScan(value = "com.plugin.nurse.mapper")
public class HealthNurseApplication {


    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = SpringApplication.run(HealthNurseApplication.class, args);
//        System.out.println(ctx.getEnvironment().getProperty("spring.datasource.url"));

        char[][] diamond={
                {' ',' ',' ','*',' ',' ',' '},
                {' ',' ','*','*','*',' ',' '},
                {' ','*','*','*','*','*',' '},
                {'*','*','*','*','*','*','*'},
                {' ','*','*','*','*','*',' '},
                {' ',' ','*','*','*',' ',' '},
                {' ',' ',' ','*',' ',' ',' '},
        };

        char arr[][]=new char[7][126];

        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                arr[i][j] = 'o';
            }
        }

        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                if (arr[i][j] == 'o') {
                    int patternRow = i % diamond.length;
                    int patternCol = j % diamond[0].length;
                    arr[i][j] = diamond[patternRow][patternCol];
                }
            }
        }

        for (char[] row : arr) {
            System.out.println(new String(row));
        }

    }

}
